package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 渠道信息表
 * </p>
 *
 * @author Shane
 * @since 2019-07-24
 */
public class Channel implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	private Integer pid;

	private String code;

	/**
	 * 渠道账号
	 */
	private String username;

	/**
	 * 渠道密码
	 */
	private String password;

	private String token;

	/**
	 * 渠道类型，1-主播渠道  2-cps渠道
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 分成比例百分比
	 */
	@TableField(value="divide_rate")
	private Double divideRate;

	/**
	 * 渠道扣量百分比
	 */
	@TableField(value="reduce_number")
	private Integer reduceNumber;

	/**
	 * 联系人姓名
	 */
	private String realname;

	@TableField(value = "id_no")
	private String idNo;

	/**
	 * 联系人邮箱
	 */
	@TableField(value="link_mail")
	private String linkMail;

	/**
	 * 联系人qq号
	 */
	@TableField(value="link_qq")
	private String linkQq;

	@TableField(value = "link_wx")
	private String linkWx;

	/**
	 * 联系人手机号
	 */
	@TableField(value="link_phone")
	private String linkPhone;

	/**
	 * 联系人支付宝名称
	 */
	@TableField(value="link_alipay_name")
	private String linkAlipayName;

	/**
	 * 联系人支付宝账号
	 */
	@TableField(value="link_alipay_no")
	private String linkAlipayNo;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	@TableField(value = "`status`")
	private Integer status;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Double getDivideRate() {
		return divideRate;
	}

	public void setDivideRate(Double divideRate) {
		this.divideRate = divideRate;
	}

	public Integer getReduceNumber() {
		return reduceNumber;
	}

	public void setReduceNumber(Integer reduceNumber) {
		this.reduceNumber = reduceNumber;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getIdNo() {
		return idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}

	public String getLinkMail() {
		return linkMail;
	}

	public void setLinkMail(String linkMail) {
		this.linkMail = linkMail;
	}

	public String getLinkQq() {
		return linkQq;
	}

	public void setLinkQq(String linkQq) {
		this.linkQq = linkQq;
	}

	public String getLinkWx() {
		return linkWx;
	}

	public void setLinkWx(String linkWx) {
		this.linkWx = linkWx;
	}

	public String getLinkPhone() {
		return linkPhone;
	}

	public void setLinkPhone(String linkPhone) {
		this.linkPhone = linkPhone;
	}

	public String getLinkAlipayName() {
		return linkAlipayName;
	}

	public void setLinkAlipayName(String linkAlipayName) {
		this.linkAlipayName = linkAlipayName;
	}

	public String getLinkAlipayNo() {
		return linkAlipayNo;
	}

	public void setLinkAlipayNo(String linkAlipayNo) {
		this.linkAlipayNo = linkAlipayNo;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
